package com.numberone.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzc
 * @since 2019-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ly_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("userName")
    private String userName;

    @TableField("accountName")
    private String accountName;

    @TableField("password")
    private String password;

    @TableField("credentialsSalt")
    private String credentialsSalt;

    @TableField("description")
    private String description;

    @TableField("locked")
    private String locked;

    @TableField("createTime")
    private LocalDateTime createTime;

    /**
     * 逻辑删除状态0:存在1:删除
     */
    @TableField("deletestatus")
    private Integer deletestatus;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public User setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public User setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getAccountName() {
        return accountName;
    }

    public User setAccountName(String accountName) {
        this.accountName = accountName;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getCredentialsSalt() {
        return credentialsSalt;
    }

    public User setCredentialsSalt(String credentialsSalt) {
        this.credentialsSalt = credentialsSalt;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public User setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getLocked() {
        return locked;
    }

    public User setLocked(String locked) {
        this.locked = locked;
        return this;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public User setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    public Integer getDeletestatus() {
        return deletestatus;
    }

    public User setDeletestatus(Integer deletestatus) {
        this.deletestatus = deletestatus;
        return this;
    }
}
